package com.yzh.array02;

import java.util.Arrays;

/**
 * @author 于振晗
 * @title: Test05
 * @description: TODO 二维数组
 * @date 2020年08月18日
 * @path com.yzh.array02;
 */
public class Test05 {
    public static void main(String[] args) {
        //静态三个班级四个学生分数
        int [][] arr = {{1,8,7,2},{6,1,9,7},{1,3,8,7}};
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(arr[0]));
        System.out.println(Arrays.toString(arr[1]));
        System.out.println(Arrays.toString(arr[2]));
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.println("第"+(i+1)+"个班级第"+(j+1)+"个学生分数为:"+arr[i][j]);
            }
        }
    }
}
